﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
    Title="Mossman's FAST for Sharepoint Query Tool for .NET 3.5" Height="640" Width="1101" Icon="/FASTSearchTool;component/Images/MossMan.jpg" ResizeMode="CanMinimize" Foreground="Black" Name="winQuery" WindowStyle="ThreeDBorderWindow">
 
    <Grid Height="842">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="212*" />
            <ColumnDefinition Width="819*" />
        </Grid.ColumnDefinitions>
        <TextBox Height="24" HorizontalAlignment="Left" Margin="82,73,0,0" Name="txtUsername" VerticalAlignment="Top" Width="238" FontSize="11" Text="" Grid.ColumnSpan="2" FontWeight="Normal" TabIndex="3" />
        <PasswordBox Height="24" HorizontalAlignment="Left" Margin="82,109,0,0" Name="txtPassword" VerticalAlignment="Top" Width="238" FontSize="11" Password="" PasswordChar="*" Grid.ColumnSpan="2" FontWeight="Normal" TabIndex="4" />
        <toolkit:DataGrid AutoGenerateColumns="False" Height="212" HorizontalAlignment="Left" Margin="12,197,0,0" Name="dgScopes" VerticalAlignment="Top" Width="192" DataContext="{Binding}" ItemsSource="{Binding}" GridLinesVisibility="Horizontal" AlternatingRowBackground="DarkOrange" IsSynchronizedWithCurrentItem="True">
            <toolkit:DataGrid.Columns>
                <toolkit:DataGridCheckBoxColumn Header="Add" Binding="{Binding AddScope}" />
                <toolkit:DataGridTextColumn Header="Scope"  Binding="{Binding Name}" IsReadOnly="True" />
            </toolkit:DataGrid.Columns>
        </toolkit:DataGrid>
        <Button Content="Get Metadata" Height="23" HorizontalAlignment="Left" Margin="12,145,0,0" Name="btnGetMetadata" VerticalAlignment="Top" Width="100" TabIndex="5" />
        <GroupBox Header="Query Xml (alter if needed)" Height="151" HorizontalAlignment="Left" Margin="12,444,0,0" Name="GroupBox1" VerticalAlignment="Top" Width="1055" Grid.ColumnSpan="2" FontWeight="Bold">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="192*" />
                    <ColumnDefinition Width="803*" />
                </Grid.ColumnDefinitions>
                <TextBox Height="133" HorizontalAlignment="Left" Margin="0,3,0,0" Name="txtQuery" VerticalAlignment="Top" Width="1037" Grid.ColumnSpan="2" AcceptsReturn="True" AcceptsTab="True" VerticalScrollBarVisibility="Auto" FontWeight="Normal" />
            </Grid>
        </GroupBox>
        <Button Content="Generate Query" Height="23" HorizontalAlignment="Left" Margin="12,415,0,0" Name="btnGenerateQuery" VerticalAlignment="Top" Width="100" />
        <Button Content="Run QueryEx (DataSet)" Height="23" HorizontalAlignment="Left" Margin="133,415,0,0" Name="btnRunQueryEx" VerticalAlignment="Top" Width="198" Grid.ColumnSpan="2" />
        <Button Content="Run Query (Xml)" Height="23" HorizontalAlignment="Left" Margin="141,415,0,0" Name="btnRunQuery" VerticalAlignment="Top" Width="198" Grid.Column="1" />
        <TextBox Grid.ColumnSpan="2" Height="23" HorizontalAlignment="Left" Margin="81,8,0,0" Name="txtSiteUrl" VerticalAlignment="Top" Width="238" Text="" FontWeight="Normal" TabIndex="1" />
        <Label Content="Site Url" FontWeight="Bold" HorizontalAlignment="Left" Margin="10,8,0,721" Name="Label1" Width="72" OpacityMask="AliceBlue" Background="{x:Null}">
            <Label.BorderBrush>
                <ImageBrush />
            </Label.BorderBrush>
        </Label>
        <Label Content="Domain" FontWeight="Bold" Height="26" HorizontalAlignment="Left" Margin="10,40,0,0" Name="Label8" VerticalAlignment="Top" Width="72" OpacityMask="AliceBlue" Background="{x:Null}">
            <Label.BorderBrush>
                <ImageBrush />
            </Label.BorderBrush>
        </Label>
        <Label Content="Username" FontWeight="Bold" Height="26" HorizontalAlignment="Left" Margin="10,71,0,0" Name="Label2" VerticalAlignment="Top" Width="72" OpacityMask="AliceBlue" Background="{x:Null}">
            <Label.BorderBrush>
                <ImageBrush />
            </Label.BorderBrush>
        </Label>
        <Label Content="Password" FontWeight="Bold" Height="26" HorizontalAlignment="Left" Margin="10,106,0,0" Name="Label7" VerticalAlignment="Top" Width="72" OpacityMask="AliceBlue" Background="{x:Null}">
            <Label.BorderBrush>
                <ImageBrush />
            </Label.BorderBrush>
        </Label>
        <TextBox FontWeight="Normal" Grid.ColumnSpan="2" Height="23" HorizontalAlignment="Left" Margin="81,40,0,0" Name="txtDomain" Text="" VerticalAlignment="Top" Width="238" TabIndex="2" />
        <TabControl Grid.Column="1" Height="183" HorizontalAlignment="Left" Margin="123,8,0,0" Name="tabQryOptions" VerticalAlignment="Top" Width="722">
            <TabItem Header="Query Options" Name="tabItem1">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="59*" />
                        <ColumnDefinition Width="653*" />
                    </Grid.ColumnDefinitions>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="46,46,0,0" Name="txtStartNum" Text="1" VerticalAlignment="Top" Width="64" Grid.Column="1" TabIndex="7" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="46,0,0,50" Name="txtNumResults" Text="20" VerticalAlignment="Bottom" Width="64" Grid.Column="1" TabIndex="8" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="46,111,0,0" Name="txtLocale" Text="en-US" VerticalAlignment="Top" Width="64" Grid.Column="1" TabIndex="9" />
                    <ComboBox Height="23" HorizontalAlignment="Right" ItemsSource="{Binding}" Margin="0,49,7,0" Name="cboEnableSpellCheck" SelectedValuePath="Content" VerticalAlignment="Top" Width="111" Grid.Column="1" TabIndex="14">
                        <ComboBoxItem Content="Suggest" IsSelected="True" />
                        <ComboBoxItem Content="On" />
                        <ComboBoxItem Content="Off" />
                    </ComboBox>
                    <ComboBox Height="23" HorizontalAlignment="Right" IsSynchronizedWithCurrentItem="{x:Null}" Margin="0,122,6,0" Name="cboQueryLanguage" SelectedIndex="0" SelectedValuePath="Content" Text="FQL" VerticalAlignment="Top" Width="111" Grid.Column="1" TabIndex="16">
                        <ComboBoxItem Content="FQL" IsSelected="True" />
                        <ComboBoxItem Content="Keyword" IsSelected="False" />
                    </ComboBox>
                    <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,85,7,0" Name="cboResultProvider" SelectedValuePath="Content" VerticalAlignment="Top" Width="111" Grid.Column="1" TabIndex="15">
                        <ComboBoxItem Content="FAST" IsSelected="True" />
                        <ComboBoxItem Content="Sharepoint" IsSelected="False" />
                    </ComboBox>
                    <Label Background="{x:Null}" Content="Enable Spellcheck" FontSize="11" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="374,49,0,0" Name="Label4" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="117" Grid.Column="1">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <CheckBox Background="{x:Null}" Content="Include Special Terms Results" FontWeight="Bold" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="127,0,0,38" Name="chkIncSpecialTermsResults" OpacityMask="AliceBlue" VerticalAlignment="Bottom" Width="193" Grid.Column="1" TabIndex="12">
                        <CheckBox.BorderBrush>
                            <ImageBrush />
                        </CheckBox.BorderBrush>
                    </CheckBox>
                    <Label Background="{x:Null}" Content="Results Provider" FontSize="11" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="374,84,0,0" Name="Label9" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="117" Grid.Column="1">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <Label Background="{x:Null}" Content="Start At #" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="15,44,0,0" Name="lblStart" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="72" Grid.ColumnSpan="2">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <CheckBox Background="{x:Null}" Content="Enable Stemming" FontWeight="Bold" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="127,44,0,0" Name="chkEnableStemming" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="120" Grid.Column="1" TabIndex="10">
                        <CheckBox.BorderBrush>
                            <ImageBrush />
                        </CheckBox.BorderBrush>
                    </CheckBox>
                    <CheckBox Background="{x:Null}" Content="Implicit And Behavior" FontWeight="Bold" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="127,123,0,0" Name="chkImplicitAndBehavior" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="141" Grid.Column="1" TabIndex="13">
                        <CheckBox.BorderBrush>
                            <ImageBrush />
                        </CheckBox.BorderBrush>
                    </CheckBox>
                    <Label Background="{x:Null}" Content="Query Language" FontSize="11" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="374,0,0,9" Name="Label5" OpacityMask="AliceBlue" VerticalAlignment="Bottom" Width="117" Grid.Column="1">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <Label Background="{x:Null}" Content="Locale" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="16,111,0,0" Name="Label3" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="63" Grid.ColumnSpan="2">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <CheckBox Background="{x:Null}" Content="Include Relevant Results" FontWeight="Bold" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="127,0,0,65" Name="chkIncRelevantResults" OpacityMask="AliceBlue" VerticalAlignment="Bottom" Width="180" Grid.Column="1" TabIndex="11">
                        <CheckBox.BorderBrush>
                            <ImageBrush />
                        </CheckBox.BorderBrush>
                    </CheckBox>
                    <Label Background="{x:Null}" Content="# Results" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="15,76,0,0" Name="lblNumResults" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="63" Grid.ColumnSpan="2">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <Label Content="Query Terms:" Height="32" HorizontalAlignment="Left" Margin="13,11,0,0" Name="Label6" VerticalAlignment="Top" Width="86" FontWeight="Bold" Grid.ColumnSpan="2" />
                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,13,300,0" Name="txtQueryTerms" VerticalAlignment="Top" Width="307" Grid.Column="1" TabIndex="6" />
                    <ComboBox Grid.Column="1" Height="23" HorizontalAlignment="Right" ItemsSource="{Binding}" Margin="0,13,7,0" Name="cboStringMode" SelectedValuePath="Content" TabIndex="14" VerticalAlignment="Top" Width="111">
                        <ComboBoxItem Content="AND" IsSelected="True" />
                        <ComboBoxItem Content="ANY" />
                        <ComboBoxItem Content="OR" />
                        <ComboBoxItem Content="ONEAR" />
                        <ComboBoxItem Content="NEAR" />
                        <ComboBoxItem Content="PHRASE" />
                    </ComboBox>
                    <Label Background="{x:Null}" Content="Query String Mode" FontSize="11" FontWeight="Bold" Height="30" HorizontalAlignment="Left" Margin="374,13,0,0" Name="Label18" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="117" Grid.Column="1">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                </Grid>
            </TabItem>
            <TabItem Header="Sort By / Rank Profile">
                <Grid Height="151" Name="Grid3" Width="709">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="283*" />
                        <ColumnDefinition Width="260*" />
                        <ColumnDefinition Width="127*" />
                    </Grid.ColumnDefinitions>
                    <Label Background="{x:Null}" Content="Property Name" FontWeight="Bold" Height="31" HorizontalAlignment="Left" Margin="11,39,0,0" Name="Label13" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="100">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <Label Background="{x:Null}" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="13,0,0,19" Name="Label15" OpacityMask="AliceBlue" VerticalAlignment="Bottom" Width="63" Content="Direction">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="155,39,0,0" Name="cboSortPropName" VerticalAlignment="Top" Width="120" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="155,110,0,0" Name="cboSortByDirection" VerticalAlignment="Top" Width="120"></ComboBox>
                    <RadioButton Content="Property Sort" Height="21" HorizontalAlignment="Left" Margin="11,10,0,0" Name="radSortByProp" VerticalAlignment="Top" Width="100" FontWeight="Bold" IsChecked="False" />
                    <RadioButton Content="FQL Formula" FontWeight="Bold" Height="21" HorizontalAlignment="Left" Margin="31,10,0,0" Name="radSortByFQL" VerticalAlignment="Top" Width="100" Grid.Column="1" />
                    <RadioButton Content="Rank Profile" FontWeight="Bold" Height="21" HorizontalAlignment="Left" Margin="117,10,0,0" Name="radSortByRankProfile" VerticalAlignment="Top" Width="100" />
                    <TextBox Height="97" HorizontalAlignment="Left" Margin="31,36,0,0" Name="txtSortByFQL" VerticalAlignment="Top" Width="340" Grid.Column="1" Grid.ColumnSpan="2" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap" />
                    <Label Background="{x:Null}" Content="Rank Profile Name" FontWeight="Bold" Height="31" HorizontalAlignment="Left" Margin="11,67,0,0" Name="Label14" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="120">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="155,69,0,0" Name="txtSortByRankProfile" VerticalAlignment="Top" Width="120" />
                </Grid>
            </TabItem>
            <TabItem Header="Trim Duplicates">
                <Grid Height="155" Name="grid1" Width="712">
                    <ComboBox Height="28" HorizontalAlignment="Left" Margin="146,121,0,0" Name="cboTrimDuplicateOnProp" VerticalAlignment="Top" Width="341" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}" IsEnabled="False" />
                    <Label Content="Trim On Property" Height="28" HorizontalAlignment="Left" Margin="10,121,0,0" Name="Label11" VerticalAlignment="Top" Width="116" FontWeight="Bold" Padding="0" />
                    <Label Content="Keep Count" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="10,0,0,65" Name="Label12" VerticalAlignment="Bottom" Width="83" Padding="0" />
                    <TextBox Height="27" HorizontalAlignment="Right" Margin="0,0,508,69" Name="txtTrimDuplicateKC" VerticalAlignment="Bottom" Width="58" Text="1" IsEnabled="False" />
                    <CheckBox Content="Use Custom Settings" Height="16" HorizontalAlignment="Left" Margin="10,29,0,0" Name="chkTrimDuplicatesSetProperty" VerticalAlignment="Top" Width="152" FontWeight="Bold" HorizontalContentAlignment="Right" FlowDirection="RightToLeft" VerticalContentAlignment="Top" />
                    <CheckBox Content="Include ID" FlowDirection="RightToLeft" FontWeight="Bold" Height="16" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="10,96,0,0" Name="chkTrimDuplicatesIncludeID" VerticalAlignment="Top" VerticalContentAlignment="Top" Width="152" IsEnabled="False" IsChecked="True" />
                    <CheckBox Content="Trim Duplicates" FlowDirection="RightToLeft" FontWeight="Bold" Height="19" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="10,4,0,0" Name="chkTrimDuplicates" VerticalAlignment="Top" VerticalContentAlignment="Top" Width="152" />
                </Grid>
            </TabItem>
            <TabItem Header="MOSS Options">
                <Grid Height="151" Name="Grid4" Width="711">
                    <Label Height="28" HorizontalAlignment="Left" Name="Label10" VerticalAlignment="Top" Width="130" Content="Query Text Predicate" Margin="0,6,0,0" FontWeight="Bold" />
                    <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,8,464,0" Name="cboQTPredicate" VerticalAlignment="Top" Width="111">
                        <ComboBoxItem Content="FREETEXT" IsSelected="True" />
                        <ComboBoxItem Content="CONTAINS" IsSelected="False" />
                    </ComboBox>
                </Grid>
            </TabItem>
            <TabItem Header="User Context">
                <Grid Height="151" Name="Grid6" Width="710" OpacityMask="Black">
                    <Label Content="Context Group ID:" FontWeight="Bold" Height="32" HorizontalAlignment="Left" Margin="6,6,0,0" Name="Label20" VerticalAlignment="Top" Width="123" />
                    <Label Content="User Context Data:" FontWeight="Bold" Height="32" HorizontalAlignment="Left" Margin="6,38,0,0" Name="Label21" VerticalAlignment="Top" Width="123" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="135,8,0,0" Name="txtUserContextGroupID" VerticalAlignment="Top" Width="350" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="135,40,0,0" Name="txtUserContextData" VerticalAlignment="Top" Width="350" />
                </Grid>
            </TabItem>
            <TabItem Header="Default Columns">
                <Grid Height="152" Name="grid2" Width="710">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="48*" />
                        <ColumnDefinition Width="622*" />
                    </Grid.ColumnDefinitions>
                    <TextBox Height="110" HorizontalAlignment="Left" Margin="6,36,0,0" Name="txtDefaultPropertiesFAST" VerticalAlignment="Top" Width="276" AcceptsReturn="False" AcceptsTab="True" Text="" AutoWordSelection="True" VerticalScrollBarVisibility="Auto" Grid.ColumnSpan="2" TextWrapping="Wrap" />
                    <Label Background="{x:Null}" Content="FAST Default Properties" FontWeight="Bold" Height="31" HorizontalAlignment="Left" Margin="5,6,0,0" Name="Label16" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="157" Grid.ColumnSpan="2">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <Label Background="{x:Null}" Content="Sharepoint Default Properties" FontWeight="Bold" Height="31" HorizontalAlignment="Left" Margin="240,6,0,0" Name="Label17" OpacityMask="AliceBlue" VerticalAlignment="Top" Width="186" Grid.Column="1">
                        <Label.BorderBrush>
                            <ImageBrush />
                        </Label.BorderBrush>
                    </Label>
                    <TextBox Height="110" HorizontalAlignment="Right" Margin="0,36,127,0" Name="txtDefaultPropertiesMOSS" VerticalAlignment="Top" Width="292" AcceptsReturn="True" AcceptsTab="True" AutoWordSelection="True" VerticalScrollBarVisibility="Auto" Grid.Column="1" TextWrapping="Wrap" />
                    <Button Content="Reset" Height="23" HorizontalAlignment="Left" Margin="575,123,0,0" Name="Button1" VerticalAlignment="Top" Width="78" Grid.Column="1" />
                </Grid>
            </TabItem>
        </TabControl>
        <TabControl Height="212" HorizontalAlignment="Left" Margin="219,197,0,0" Name="TabControl1" VerticalAlignment="Top" Width="848" Grid.ColumnSpan="2" VerticalContentAlignment="Bottom" SnapsToDevicePixels="True">
            <TabItem Header="Managed Properties" Name="TabItem2">
                <Grid>
                    <toolkit:DataGrid AlternatingRowBackground="DarkOrange" AutoGenerateColumns="False" BorderBrush="#00000000" DataContext="{Binding}" Height="185" HorizontalAlignment="Left" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}" Margin="1,0,0,0" Name="dgMetadata" VerticalAlignment="Top" Width="836">
                        <toolkit:DataGrid.Columns>
                            <toolkit:DataGridTextColumn Binding="{Binding Name, Mode=TwoWay}" Header="Name" IsReadOnly="True" MinWidth="100" SortDirection="Descending" />
                            <toolkit:DataGridTextColumn Binding="{Binding Type, Mode=TwoWay}" Header="Type" />
                            <toolkit:DataGridTextColumn Binding="{Binding Retrievable, Mode=TwoWay}" Header="Retrievable" />
                            <toolkit:DataGridTextColumn Binding="{Binding FullTextQueriable}" Header="FullTextQueriable" />
                            <toolkit:DataGridTextColumn Binding="{Binding Refinable}" Header="Refinable" />
                            <toolkit:DataGridCheckBoxColumn Binding="{Binding IncludeInResults}" ClipboardContentBinding="{Binding}" Header="IncInResults" IsReadOnly="False" Selector.IsSelected="True" />
                            <toolkit:DataGridCheckBoxColumn Binding="{Binding IncludeInRefiner}" Header="IncRefiner" />
                            <toolkit:DataGridComboBoxColumn Header="QueryType" SelectedValueBinding="{Binding QueryType}" />
                            <toolkit:DataGridTextColumn Binding="{Binding QueryTerm, Mode=TwoWay}" Header="Query Term" />
                        </toolkit:DataGrid.Columns>
                    </toolkit:DataGrid>
                </Grid>
            </TabItem>
            <TabItem Header="XRANK">
                <Grid Height="281" Name="Grid5" Width="836">
                    <toolkit:DataGrid AutoGenerateColumns="False" Margin="1,37,5,97" Name="dgXRANK" SnapsToDevicePixels="False" IsSynchronizedWithCurrentItem="True" DataContext="{Binding}" ItemsSource="{Binding}" AlternatingRowBackground="DarkOrange" CanUserReorderColumns="False">
                        <toolkit:DataGrid.Columns>
                            <toolkit:DataGridTextColumn Binding="{Binding Name, Mode=TwoWay}" Header="Property Name" />
                            <toolkit:DataGridComboBoxColumn Header="QueryType" SelectedValueBinding="{Binding QueryType}" />
                            <toolkit:DataGridTextColumn Binding="{Binding BoostTerm, Mode=TwoWay}" Header="Boost Term" />
                        </toolkit:DataGrid.Columns>
                    </toolkit:DataGrid>
                    <CheckBox Content="Enable XRANK" Height="22" HorizontalAlignment="Left" Margin="0,6,0,0" Name="chkXRANK" VerticalAlignment="Top" Width="122" />
                    <Label Content="Boost Term (Full Document)" Height="28" HorizontalAlignment="Left" Margin="111,0,0,0" Name="Label19" VerticalAlignment="Top" Width="163" />
                    <TextBox Height="26" HorizontalAlignment="Left" Margin="271,0,0,0" Name="txtXRANKBoostTerm" VerticalAlignment="Top" Width="199" />
                    <Label Content="Weight" Height="28" HorizontalAlignment="Right" Margin="0,0,299,0" Name="Label22" VerticalAlignment="Top" Width="61" />
                    <TextBox Height="26" HorizontalAlignment="Left" Margin="529,0,0,0" Name="txtXRANKWeight" VerticalAlignment="Top" Width="116" Text="100" />
                    <Label Content="Boost All" Height="28" HorizontalAlignment="Left" Margin="651,-2,0,0" Name="lblXRANKBoostAll" VerticalAlignment="Top" Width="63" />
                    <ComboBox Height="26" HorizontalAlignment="Right" Margin="0,0,7,0" Name="cboXRANKBoostAll" VerticalAlignment="Top" Width="110">
                        <ComboBoxItem Content="Yes" IsSelected="True" />
                        <ComboBoxItem Content="No" />
                    </ComboBox>
                </Grid>
            </TabItem>
        </TabControl>
        <Grid.OpacityMask>
            <RadialGradientBrush>
                <GradientStop Color="Black" Offset="0" />
                <GradientStop Color="White" Offset="1" />
            </RadialGradientBrush>
        </Grid.OpacityMask>
    </Grid>
    <!--<Window.Background>
        <ImageBrush ImageSource="/FASTSearchTool;component/Images/moss.jpg" />
    </Window.Background>-->
</Window>
